//
//  MineCell.m
//  WE
//
//  Created by iMacOne on 15/11/19.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "MineCell.h"
#import "Head.h"
@interface MineCell ()
@property (nonatomic, strong)UIImageView * aImgeView;
@property (nonatomic, strong)UIImageView * arrowImage;
@end
@implementation MineCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.aImgeView = [[UIImageView alloc] initWithFrame:CGRectMake(margin_20, 15/2, 30, 30)];
        _aImgeView.image = [UIImage imageNamed:@""];
        _aImgeView.layer.masksToBounds = YES;
        _aImgeView.layer.cornerRadius = 30 / 2;
        _aImgeView.backgroundColor = DEBUG_CLOLR;
        
        self.img = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, 20, 20)];
        [self.aImgeView addSubview:self.img];
        
        self.titleLbl = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_aImgeView.frame) + 25, 25/2, 90, 20)];
        _titleLbl.font = FONT(14);
        float arrow_h = 0.36 * 45 ,arrow_w = arrow_h * 0.57 ,arrow_y = (45 - arrow_h)/2  , arrow_x = WindowWidth - 30;
         self.arrowImage = [[UIImageView alloc] initWithFrame:CGRectMake(arrow_x, arrow_y, arrow_w , arrow_h)];
        _arrowImage.image = [UIImage imageNamed:@"ico_arrow"];
        
        
        [self.contentView addSubview:_aImgeView];
        [self.contentView addSubview:_titleLbl];
        [self.contentView addSubview:_arrowImage];

        
    }
    return self;
}

@end
